package com.innve.scd.ccd;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wlc on 2017/4/11.
 */
@SpringBootApplication
@RestController
public class ConfigClientDemo {
    @Value("${name}")
    String name = "name";

    @RequestMapping("/")
    public String home() {
        return "获得配置：" + name;
    }

    public static void main(String[] args) {
        SpringApplication.run(ConfigClientDemo.class, args);
    }
}
